add_executable(OsFile_bench OsFile_bench.cpp)
target_link_libraries(OsFile_bench ftpserver_lib)

add_executable(FtpClient_unittest FtpClient_unittest.cpp)
target_link_libraries(FtpClient_unittest ftpserver_lib)

if(BOOSTTEST_LIBRARY)
    message("find BOOSTTEST_LIBRARY")

    add_executable(OsFile_unittest OsFile_unittest.cpp)
    target_link_libraries(OsFile_unittest ftpserver_lib boost_unit_test_framework)
    add_test(NAME OsFile_unittest COMMAND OsFile_unittest)

    add_executable(IoFile_unittest IoFile_unittest.cpp)
    target_link_libraries(IoFile_unittest ftpserver_lib boost_unit_test_framework)
    add_test(NAME IoFile_unittest COMMAND IoFile_unittest)

    add_executable(UserDao_unittest UserDao_unittest.cpp)
    target_link_libraries(UserDao_unittest ftpserver_lib boost_unit_test_framework)
    add_test(NAME UserDao_unittest COMMAND UserDao_unittest)
endif()
